//
// Created by Akashic on 2024/7/10.
//

#ifndef NUMBER_H
#define NUMBER_H

#include <stdio.h>
#include <stdlib.h>
#include "stdbool.h"
#include <stdint.h>

#ifdef __cplusplus
extern "C"
{
#endif


typedef struct Bytes{
	uint8_t *data;
	int len;
}Bytes;


uint16_t *toUint16(uint16_t value);

uint8_t *toUint8(uint8_t value);

uint32_t *toUint32(uint32_t value);

uint64_t *toUint64(uint64_t value);


void freeUint16(void *value);

void freeUint8(void *value);

void freeUint32(void *value);

void freeUint64(void *value);

void printHex(Bytes *bytes);

void freeBytes(void *value);

#ifdef __cplusplus
}
#endif

#endif //TEST_DEMO_INTEGER_H
